package com.bingxue.edu.common.config;

import com.bingxue.edu.framework.config.DynamicConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 微信配置
 * @author panbo
 * @since 2024/8/29
 */
@Data
@DynamicConfig
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = WechatProperties.PREFIX)
public class WechatProperties {

    public static final String PREFIX = "wechat";

    /**
     * 家长端小程序 appid
     */
    private String parentAppId = "wxdea451e04f004830";

    /**
     * 家长端小程序 secret
     */
    private String parentAppSecret = "ae096e0406ad7acfa06e55639500f2f6";

    /**
     * 教师端小程序 appid
     */
    private String employeeAppId = "wxcd8931cb26838b9c";

    /**
     * 家长端小程序 secret
     */
    private String employeeAppSecret = "987282ea95577d48ea2379083b63520d";

    /**
     * 企业微信配置
     */
    private String corpId = "wwbd1184426ffa1049";
    private String corpSecret = "PEF87SJG6skxM2lh2cFxn-utB4oEVOZ0-JDzBmzW6CA";
    private Integer corpAgentId = 1000004;
    private String corpToken = "";
    private String corpAesKey = "";

}
